package com.kgcx.system.domain;

import com.kgcx.dbutils.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_sys_license_info")
@ApiModel(value = "运营公司经营许可")
public class LicenseInfo extends BaseDomain {

    /**
     * 公司标识
     */
    @ApiModelProperty(value = "公司标识", required = true, example = "123")
    private String companyId;

    /**
     * 行政区域编码
     */
    @ApiModelProperty(value = "行政区域编码", required = true, example = "4301")
    private Integer address;

    /**
     * 网络预约出租车经营许可证号
     */
    @ApiModelProperty(value = "网络预约出租车经营许可证号", required = true, example = "123456")
    private String certifcate;

    /**
     * 经营区域
     */
    @ApiModelProperty(value = "经营区域", required = true, example = "长沙")
    private String operationArea;

    /**
     * 公司名称
     */
    @ApiModelProperty(value = "公司名称", required = true, example = "空港出行")
    private String ownerName;

    /**
     * 发证机构名称
     */
    @ApiModelProperty(value = "发证机构名称", required = true, example = "长沙市公安局")
    private String organization;

    /**
     * 有效期起
     */
    @ApiModelProperty(value = "有效期起", required = true, example = "1511248354000")
    private Timestamp startDate;

    /**
     * 有效期止
     */
    @ApiModelProperty(value = "有效期止", required = true, example = "1511248354000")
    private Timestamp stopDate;

    /**
     * 初次发证日期
     */
    @ApiModelProperty(value = "初次发证日期", required = true, example = "1511248354000")
    private Timestamp certifyDate;

    /**
     * 证照状态，1=有效，2=无效
     */
    @ApiModelProperty(value = "证照状态，1=有效，2=无效", required = true, example = "1")
    private String state;

}